import React from 'react';
import MoreDataView from '../../components/TableView/MoreDataView.js';

module.exports = [
  {
    key:'id',
    title:'编号',
    dataType:'varchar',
    primary : true
  },{
    key:'createdAtStr',
    title:'创建时间',
    dataType:'varchar',
  },{
    key:'pushTimeStr',
    title:'推送时间',
    dataType:'varchar',
  },{
    key:'systemMsgTitle',
    title:'消息标题',
    dataType:'varchar',
    render: (text, row, index) => {
      if(!text)
      return;
      if(text.length > 10){
        return <MoreDataView fullText={text}/>
      }
      else{
        return text;
      }
    }
  },{
    key:'title',
    title:'推送标题',
    dataType:'varchar',
    render: (text, row, index) => {
      if(text.length > 10){
        return <MoreDataView fullText={text}/>
      }
      else{
        return text;
      }
    }
  },{
    key:'content',
    title:'推送内容',
    render: (text, row, index) => {
      if(text.length > 10){
        return <MoreDataView fullText={text}/>
      }
      else{
        return text;
      }
    }
  }
];
